#include <sys/svcs.h>#include <sys/time.h>#include <string.h>#include <stdio.h>#include <unistd.h>#include "uart.h"#include "raven.h"

Defines | |
| #define | LEDMAX 8 |
| Maximum LED blink window, in units of 200ms epochs. | |
Functions | |
| void | timer_handler (event_t event, void *cbargs, void *context) |
| this function is invoked when the timer is fired | |
| void | __main (event_t event, void *cbargs, void *context) |
| this function is invoked after boot | |
Variables | |
| static int16_t | g_timerfd |
| timer descripter, used to hold the return value of timer() | |
| static uint8_t | LED_cnt = 0 |
| Current LED blink count, in units of 200ms epochs, initialized to 0. | |
| static uint8_t | LED_limit = 0 |
| Current LED blink limit, in units of 200ms epochs, initialized to 0. | |
| #define LEDMAX 8 |
Maximum LED blink window, in units of 200ms epochs.
| void __main | ( | event_t | event, | |
| void * | cbargs, | |||
| void * | context | |||
| ) |
| void timer_handler | ( | event_t | event, | |
| void * | cbargs, | |||
| void * | context | |||
| ) |
this function is invoked when the timer is fired
timer_handler
| event | equals to SETITIMER as this is a setitimer() callback | |
| cbargs | passes resource back from setitimer() call | |
| context | passes context back from setitimer() call |

uint8_t LED_cnt = 0 [static] |
Current LED blink count, in units of 200ms epochs, initialized to 0.
uint8_t LED_limit = 0 [static] |
Current LED blink limit, in units of 200ms epochs, initialized to 0.
1.5.5